<template>
    <div>
        <h3>{{title}}</h3>
        <ul>
            <li v-for="(v,i) in data" :key="i">
                {{v.name}}
            </li>
        </ul>
    </div>
</template>

<script>
export default {
    name: 'Vue2ExerciseContent',

    data() {
        return {

        };
    },
    // props:['data'], //数组的方式
    props:{
        data:{
            type:Array,
            default:()=>{
                return [{name:"默认1"}]
            }
        },
        title:{
            type:String,
            default:()=>{
                return "默认标题1"
            }
        }
    },
    mounted() {

    },

    methods: {

    },
};
</script>

<style scoped>

</style>
